import Vue from 'vue'
import Router from 'vue-router'
const _import = require('./_import_' + process.env.NODE_ENV)
// in development-env not use lazy-loading, because lazy-loading too many pages will cause webpack hot update too slow. so only in production use lazy-loading;
// detail: https://panjiachen.github.io/share-fresh-air-site/#/lazy-loading

Vue.use(Router)

/* Layout */
import Layout from '../views/layout/Layout'
import { usersRolesPermissions, hasUsersPermission } from '@/utils/usersPermissions'

/**
* hidden: true                   if `hidden:true` will not show in the sidebar(default is false)
* redirect: noredirect           if `redirect:noredirect` will no redirct in the breadcrumb
* name:'router-name'             the name is used by <keep-alive> (must set!!!)
* meta : {
    role: ['admin','editor']     will control the page role (you can set multiple roles)
    title: 'title'               the name show in submenu and breadcrumb (recommend set)
    icon: 'svg-name'             the icon show in the sidebar,
    noCache: true                if fasle ,the page will no be cached(default is false)
  }
**/
export const constantRouterMap = [
  { path: '/login', name: 'login', component: _import('login/index'), hidden: true },
  { path: '/authredirect', name: 'authredirect', component: _import('login/authredirect'), hidden: true },
  { path: '/404', name: '404', component: _import('errorPage/404'), hidden: true },
  { path: '/401', name: '401', component: _import('errorPage/401'), hidden: true },
  {
    path: '',
    component: Layout,
    // redirect: 'index',
    redirect: '/monitors/inspection-monitoring',
    children: [{
      path: 'index',
      component: _import('index/index'),
      name: 'index',
      meta: { title: '首页', icon: 'home', noCache: true, role: usersRolesPermissions.home.root }
    }]
  }
]

export default new Router({
  //mode: 'history', //后端支持可开
  scrollBehavior: () => ({ y: 0 }),
  routes: constantRouterMap
})

export const asyncRouterMap = [
  // 机器人管理
  {
    path: '/robots',
    component: Layout,
    meta: { title: '机器人管理', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'robot-management',
        name: 'robot-management',
        component: _import('robots/RobotManagement'),
        meta: { title: '机器人管理', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  },
  // 任务管理
  // 全面巡检
  {
    path: '/tasks',
    component: Layout,
    meta: { title: '全面巡检', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'comprehensive-inspection',
        name: 'comprehensive-inspection',
        component: _import('tasks/ComprehensiveInspection'),
        meta: { title: '全面巡检', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  },
  // 例行巡检
  {
    path: '/tasks',
    component: Layout,
    meta: { title: '例行巡检', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'routine-inspection',
        name: 'routine-inspection',
        component: _import('tasks/RoutineInspection'),
        meta: { title: '例行巡检', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  },
  // 专项巡检
  {
    path: '/tasks',
    component: Layout,
    meta: { title: '专项巡检', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'infrared-temperature',
        name: 'infrared-temperature',
        component: _import('tasks/InfraredTemperature'),
        meta: { title: '红外测温', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      },
      {
        path: 'oil-transcribe',
        name: 'oil-transcribe',
        component: _import('tasks/OilTranscribe'),
        meta: { title: '油位油温表抄录', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      },
      {
        path: 'arrester-transcribe',
        name: 'arrester-transcribe',
        component: _import('tasks/ArresterTranscribe'),
        meta: { title: '避雷器表计抄录', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      },
      {
        path: 'pressure-transcribe',
        name: 'pressure-transcribe',
        component: _import('tasks/PressureTranscribe'),
        meta: { title: 'SF6压力表抄录', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      },
      {
        path: 'hydraulic-transcribe',
        name: 'hydraulic-transcribe',
        component: _import('tasks/HydraulicTranscribe'),
        meta: { title: '液压表抄录', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      },
      {
        path: 'position-status',
        name: 'position-status',
        component: _import('tasks/PositionStatus'),
        meta: { title: '位置状态识别', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  },
  // 特殊巡检
  {
    path: '/tasks',
    component: Layout,
    meta: { title: '特殊巡检', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'bad-weather',
        name: 'bad-weather',
        component: _import('tasks/BadWeather'),
        meta: { title: '恶劣天气', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      },
      {
        path: 'defect-tracking',
        name: 'defect-tracking',
        component: _import('tasks/DefectTracking'),
        meta: { title: '缺陷跟踪', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  },
  // 多光谱
  {
    path: '/tasks',
    component: Layout,
    meta: { title: '多光谱巡检', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'multispectral-inspection',
        name: 'multispectral-inspection',
        component: _import('tasks/MultispectralInspection'),
        meta: { title: '多光谱巡检', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  },
  // 自定义任务
  {
    path: '/tasks',
    component: Layout,
    meta: { title: '自定义任务', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'custom-task',
        name: 'custom-task',
        component: _import('tasks/CustomTask'),
        meta: { title: '自定义任务', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  },
  // 自定义任务
  {
    path: '/tasks',
    component: Layout,
    meta: { title: '紧急任务', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'urgent-task',
        name: 'urgent-task',
        component: _import('tasks/UrgentTask'),
        meta: { title: '紧急任务', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  },
  // 地图选点
  {
    path: '/tasks',
    component: Layout,
    meta: { title: '地图选点', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'map-choosing',
        name: 'map-choosing',
        component: _import('tasks/MapChoosing'),
        meta: { title: '地图选点', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  },
  // 任务展示
  {
    path: '/tasks',
    component: Layout,
    meta: { title: '任务展示', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'task-show',
        name: 'task-show',
        component: _import('tasks/TaskShow'),
        meta: { title: '任务展示', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  },
  // 实时监控
  // 巡检监控
  {
    path: '/monitors',
    component: Layout,
    meta: { title: '巡检监控', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'inspection-monitoring',
        name: 'inspection-monitoring',
        component: _import('monitors/InspectionMonitoring'),
        meta: { title: '巡检监控', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  },
  // 机器人遥控
  {
    path: '/monitors',
    component: Layout,
    meta: { title: '机器人遥控', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'robot-control',
        name: 'robot-control',
        component: _import('monitors/RobotControl'),
        meta: { title: '机器人遥控', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  },
  // 巡检结果确认
  // 设备告警信息确认
  {
    path: '/resultsConfirm',
    component: Layout,
    meta: { title: '设备告警信息确认', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'alarm-query',
        name: 'alarm-query',
        component: _import('resultsConfirm/AlarmQuery'),
        meta: { title: '设备告警查询确认', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      },
      {
        path: 'main-show',
        name: 'main-show',
        component: _import('resultsConfirm/MainShow'),
        meta: { title: '主接线展示', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      },
      {
        path: 'interval-show',
        name: 'interval-show',
        component: _import('resultsConfirm/IntervalShow'),
        meta: { title: '间隔展示', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  },
  // 巡检结果浏览
  {
    path: '/resultsConfirm',
    component: Layout,
    meta: { title: '巡检结果浏览', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'inspection-results-browse',
        name: 'inspection-results-browse',
        component: _import('resultsConfirm/InspectionResultsBrowse'),
        meta: { title: '巡检结果浏览', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      },
      {
        path: 'inspection-task-audit',
        name: 'inspection-task-audit',
        component: _import('resultsConfirm/InspectionTaskAudit'),
        meta: { title: '巡检任务审核', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  },
  // 巡检报告生成
  {
    path: '/resultsConfirm',
    component: Layout,
    meta: { title: '巡检报告生成', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'inspection-report-generate',
        name: 'inspection-report-generate',
        component: _import('resultsConfirm/InspectionReportGenerate'),
        meta: { title: '巡检报告生成', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  },
  // 巡检结果分析
  // 对比分析
  {
    path: '/resultsAnalysis',
    component: Layout,
    meta: { title: '对比分析', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'comparison-analysis',
        name: 'comparison-analysis',
        component: _import('resultsAnalysis/ComparisonAnalysis'),
        meta: { title: '对比分析', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  },
  // 生成报表 
  {
    path: '/resultsAnalysis',
    component: Layout,
    meta: { title: '生成报表', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'generate-reports',
        name: 'generate-reports',
        component: _import('resultsAnalysis/GenerateReports'),
        meta: { title: '生成报表', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  },
  // 用户设置
  // 告警设置
  {
    path: '/users',
    component: Layout,
    meta: { title: '告警设置', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'threshold-setting',
        name: 'threshold-setting',
        component: _import('users/ThresholdSetting'),
        meta: { title: '告警阀值设置', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  },
  // 组织权限设置
  {
    path: '/users',
    component: Layout,
    meta: { title: '组织权限设置', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'rights-management',
        name: 'rights-management',
        component: _import('users/RightsManagement'),
        meta: { title: '权限管理', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  },
  // 点位设置
  {
    path: '/users',
    component: Layout,
    meta: { title: '点位设置', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'inspection-points-setting',
        name: 'inspection-points-setting',
        component: _import('users/InspectionPointsSetting'),
        meta: { title: '巡检点位设置', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      },
      {
        path: 'set-image-setting',
        name: 'set-image-setting',
        component: _import('users/SetImageSetting'),
        meta: { title: '表计校正', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      },
      {
        path: 'set-inspection-type-relation',
        name: 'set-inspection-type-relation',
        component: _import('users/SetInspectionTypeRelation'),
        meta: { title: '筛选保存', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  },
  // // 点位设置
  // {
  //   path: '/users',
  //   component: Layout,
  //   meta: { title: '表计校正', icon: 'data', role: usersRolesPermissions.admin.root },
  //   children: [
  //     {
  //       path: 'set_image_setting',
  //       name: 'set_image_setting',
  //       component: _import('users/SetImageSetting'),
  //       meta: { title: '表计校正', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
  //       hidden: false,
  //     }
  //   ]
  // },
  // 系统设置
  {
    path: '/users',
    component: Layout,
    meta: { title: '系统设置', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'user-management',
        name: 'user-management',
        component: _import('users/UserManagement'),
        meta: { title: '用户管理', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      },
      {
        path: 'organizational-structure',
        name: 'organizational-structure',
        component: _import('users/OrganizationalStructure'),
        meta: { title: '组织结构', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      },
      {
        path: 'log-management',
        name: 'log-management',
        component: _import('users/LogManagement'),
        meta: { title: '日志管理', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  },
  // 机器人系统调试维护
  // 软件设置
  {
    path: '/systems',
    component: Layout,
    meta: { title: '软件设置', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'software-settings',
        name: 'software-settings',
        component: _import('systems/SoftwareSettings'),
        meta: { title: '软件设置', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  },
  // 机器人设置
  {
    path: '/systems',
    component: Layout,
    meta: { title: '机器人设置', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'robot-setup',
        name: 'robot-setup',
        component: _import('systems/RobotSetup'),
        meta: { title: '机器人设置', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  },
  // 机器人信息查询
  {
    path: '/systems',
    component: Layout,
    meta: { title: '机器人信息查询', icon: 'data', role: usersRolesPermissions.admin.root },
    children: [
      {
        path: 'robot-alarm-query',
        name: 'robot-alarm-query',
        component: _import('systems/RobotAlarmQuery'),
        meta: { title: '机器人告警查询', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      },
      {
        path: 'outlier-query',
        name: 'outlier-query',
        component: _import('systems/OutlierQuery'),
        meta: { title: '识别异常点查询', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      },
      {
        path: 'status-display',
        name: 'status-display',
        component: _import('systems/StatusDisplay'),
        meta: { title: '机器人状态显示', noCache: true, keepAlive: false, role: usersRolesPermissions.admin.root },
        hidden: false,
      }
    ]
  }
]


// 导航菜单 显示
export const navigationRouterMap = [
  // 
  {
    title: '机器人管理',
    path: '#',
    icon: './static/resources/images/robotManagement.png',
    children: [
      {
        title: '机器人管理',
        path: '/robots',
        children: [
          {
            title: '机器人管理',
            path: '/robot-management',
            name: 'robot-management',
          }
        ]
      }
    ]
  },
  // 
  {
    title: '任务管理',
    path: '#',
    icon: './static/resources/images/taskManagement.png',
    children: [
      {
        title: '全面巡检',
        path: '/tasks',
        children: [
          {
            title: '全面巡检',
            path: '/comprehensive-inspection',
            name: 'comprehensive-inspection',
          }
        ]
      },
      {
        title: '例行巡检',
        path: '/tasks',
        children: [
          {
            title: '例行巡检',
            path: '/routine-inspection',
            name: 'routine-inspection',
          },
        ]
      },
      {
        title: '专项巡检',
        path: '/tasks',
        children: [
          {
            title: '红外测温',
            path: '/infrared-temperature',
            name: 'infrared-temperature',
          },
          {
            title: '油位油温表抄录',
            path: '/oil-transcribe',
            name: 'oil-transcribe',
          },
          {
            title: '避雷器表抄录',
            path: '/arrester-transcribe',
            name: 'arrester-transcribe',
          },
          {
            title: 'SF6压力表抄录',
            path: '/pressure-transcribe',
            name: 'pressure-transcribe',
          },
          {
            title: '液压表抄录',
            path: '/hydraulic-transcribe',
            name: 'hydraulic-transcribe',
          },
          {
            title: '位置状态识别',
            path: '/position-status',
            name: 'position-status',
          }
        ]
      },
      {
        title: '特殊巡检',
        path: '/tasks',
        children: [
          {
            title: '恶劣天气',
            path: '/bad-weather',
            name: 'bad-weather',
          },
          {
            title: '缺陷跟踪',
            path: '/defect-tracking',
            name: 'defect-tracking',
          }
        ]
      },
      {
        title: '多光谱巡检',
        path: '/tasks',
        children: [
          {
            title: '多光谱巡检',
            path: '/multispectral-inspection',
            name: 'multispectral-inspection',
          }
        ]
      },
      {
        title: '自定义任务',
        path: '/tasks',
        children: [
          {
            title: '自定义任务',
            path: '/custom-task',
            name: 'custom-task',
          }
        ]
      },
      // {
      //   title: '紧急任务',
      //   path: '/tasks',
      //   children: [
      //     {
      //       title: '紧急任务',
      //       path: '/urgent-task',
      //       name: 'urgent-task',
      //     }
      //   ]
      // },
      // {
      //   title: '地图选点',
      //   path: '/tasks',
      //   children: [
      //     {
      //       title: '地图选点',
      //       path: '/map-choosing',
      //       name: 'map-choosing',
      //     }
      //   ]
      // },
      {
        title: '任务展示',
        path: '/tasks',
        children: [
          {
            title: '任务展示',
            path: '/task-show',
            name: 'task-show',
          }
        ]
      },
    ]
  },
  // 
  {
    title: '实时监控',
    path: '#',
    icon: './static/resources/images/monitoring.png',
    children: [
      {
        title: '巡检监控',
        path: '/monitors',
        children: [
          {
            title: '巡检监控',
            path: '/inspection-monitoring',
            name: 'inspection-monitoring',
          }
        ]
      },
      {
        title: '机器人遥控',
        path: '/monitors',
        children: [
          {
            title: '机器人遥控',
            path: '/robot-control',
            name: 'robot-control',
          }
        ]
      }
    ]
  },
  // 
  {
    title: '巡检结果确认',
    path: '#',
    icon: './static/resources/images/resultsConfirm.png',
    children: [
      {
        title: '设备告警信息确认',
        path: '/resultsConfirm',
        children: [
          {
            title: '设备告警查询确认',
            path: '/alarm-query',
            name: 'alarm-query',
          },
          // {
          //   title: '主接线展示',
          //   path: '/main-show',
          //   name: 'main-show',
          // },
          {
            title: '间隔展示',
            path: '/interval-show',
            name: 'interval-show',
          }
        ]
      },
      {
        title: '巡检结果浏览',
        path: '/resultsConfirm',
        children: [
          {
            title: '巡检结果浏览',
            path: '/inspection-results-browse',
            name: 'inspection-results-browse',
          },
          {
            title: '巡检任务审核',
            path: '/inspection-task-audit',
            name: 'inspection-task-audit',
          }
        ]
      },
      {
        title: '巡检报告生成',
        path: '/resultsConfirm',
        children: [
          {
            title: '巡检报告生成',
            path: '/inspection-report-generate',
            name: 'inspection-report-generate',
          }
        ]
      }
    ]
  },
  // 
  {
    title: '巡检结果分析',
    path: '#',
    icon: './static/resources/images/resultsAnalysis.png',
    children: [
      {
        title: '对比分析',
        path: '/resultsAnalysis',
        children: [
          {
            title: '对比分析',
            path: '/comparison-analysis',
            name: 'comparison-analysis',
          }
        ]
      },
      {
        title: '生成报表',
        path: '/resultsAnalysis',
        children: [
          {
            title: '生成报表',
            path: '/generate-reports',
            name: 'generate-reports',
          }
        ]
      }
    ]
  },
  // 
  {
    title: '用户设置',
    path: '#',
    icon: './static/resources/images/userSet.png',
    children: [
      {
        title: '告警设置',
        path: '/users',
        children: [
          {
            title: '告警阀值设置',
            path: '/threshold-setting',
            name: 'threshold-setting',
          }
        ]
      },
      {
        title: '组织权限设置',
        path: '/users',
        children: [
          {
            title: '权限管理',
            path: '/rights-management',
            name: 'rights-management',
          }
        ]
      },
      {
        title: '点位设置',
        path: '/users',
        children: [
          {
            title: '巡检点位设置',
            path: '/inspection-points-setting',
            name: 'inspection-points-setting',
          },
          {
            title: '表计校正',
            path: '/set-image-setting',
            name: 'set-image-setting',
          },
          {
            title: '筛选保存',
            path: '/set-inspection-type-relation',
            name: 'set-inspection-type-relation',
          },
        ]
      },
      {
        title: '系统设置',
        path: '/users',
        children: [
          {
            title: '用户管理',
            path: '/user-management',
            name: 'user-management',
          },
          {
            title: '组织结构',
            path: '/organizational-structure',
            name: 'organizational-structure',
          },
          {
            title: '日志管理',
            path: '/log-management',
            name: 'log-management',
          }
        ]
      }
    ]
  },
  // 
  {
    title: '机器人系统调试维护',
    path: '#',
    icon: './static/resources/images/systemSet.png',
    children: [
      {
        title: '软件设置',
        path: '/systems',
        children: [
          {
            title: '软件设置',
            path: '/software-settings',
            name: 'software-settings',
          }
        ]
      },
      {
        title: '机器人设置',
        path: '/systems',
        children: [
          {
            title: '机器人设置',
            path: '/robot-setup',
            name: 'robot-setup',
          }
        ]
      },
      {
        title: '机器人信息查询',
        path: '/systems',
        children: [
          {
            title: '机器人告警查询',
            path: '/robot-alarm-query',
            name: 'robot-alarm-query',
          },
          {
            title: '设备异常点查询',
            path: '/outlier-query',
            name: 'outlier-query',
          },
          {
            title: '机器人状态显示',
            path: '/status-display',
            name: 'status-display',
          }
        ]
      }
    ]
  }
]